package com.feiyu.entity;

/**
 * @author nanshouxiao@teacher.com.cn
 * @date 2018-08-27 16:13
 */
public class BaseConfigInfo {
    /**
     * 作者
     */
    private String author;
    /**
     * 包名
     */
    private String packageName;

    private String entitySubPackage = "";
    private String mapperSubPackage = "";
    private String serviceSubPackage = "";
    private String serviceImplSubPackage = "";
    private String controllerSubPackage = "";
    /**
     * mybatis文件移除包的位置
     */
    private String mapperRemovePackage = "";
    /**
     * 表前缀，生成的类名会去掉前缀
     */
    private String tablePrefix = "";
    /**
     * 公共的mapper的名称
     */
    private String commonMapperName;
    /**
     * 公共的mapper路径
     */
    private String commonMapperPath;

    private String commonEntityName;
    private String commonEntityPath;

    private String commonServiceName;
    private String commonServicePath;

    private String commonServiceImplName;
    private String commonServiceImplPath;
    private String commonControllerName;
    private String commonControllerPath;

    private String javaFileDir;
    private String mybatisXMLFileDir;

    /**
     * 工作目录
     */
    private String workspaceDir;
    /**
     * 项目名称
     */
    private String projectName;

    private String baseProperties = "";
    /**
     *
     */
    private boolean isMyBatisPlus = false;

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getEntitySubPackage() {
        return entitySubPackage;
    }

    public void setEntitySubPackage(String entitySubPackage) {
        this.entitySubPackage = entitySubPackage;
    }

    public String getMapperSubPackage() {
        return mapperSubPackage;
    }

    public void setMapperSubPackage(String mapperSubPackage) {
        this.mapperSubPackage = mapperSubPackage;
    }

    public String getServiceSubPackage() {
        return serviceSubPackage;
    }

    public void setServiceSubPackage(String serviceSubPackage) {
        this.serviceSubPackage = serviceSubPackage;
    }

    public String getServiceImplSubPackage() {
        return serviceImplSubPackage;
    }

    public void setServiceImplSubPackage(String serviceImplSubPackage) {
        this.serviceImplSubPackage = serviceImplSubPackage;
    }

    public String getControllerSubPackage() {
        return controllerSubPackage;
    }

    public void setControllerSubPackage(String controllerSubPackage) {
        this.controllerSubPackage = controllerSubPackage;
    }

    public String getTablePrefix() {
        return tablePrefix;
    }

    public void setTablePrefix(String tablePrefix) {
        this.tablePrefix = tablePrefix;
    }

    public String getCommonMapperName() {
        return commonMapperName;
    }

    public void setCommonMapperName(String commonMapperName) {
        this.commonMapperName = commonMapperName;
    }

    public String getCommonMapperPath() {
        return commonMapperPath;
    }

    public void setCommonMapperPath(String commonMapperPath) {
        this.commonMapperPath = commonMapperPath;
    }

    public String getCommonServiceName() {
        return commonServiceName;
    }

    public void setCommonServiceName(String commonServiceName) {
        this.commonServiceName = commonServiceName;
    }

    public String getCommonServicePath() {
        return commonServicePath;
    }

    public void setCommonServicePath(String commonServicePath) {
        this.commonServicePath = commonServicePath;
    }

    public String getCommonServiceImplName() {
        return commonServiceImplName;
    }

    public void setCommonServiceImplName(String commonServiceImplName) {
        this.commonServiceImplName = commonServiceImplName;
    }

    public String getCommonServiceImplPath() {
        return commonServiceImplPath;
    }

    public void setCommonServiceImplPath(String commonServiceImplPath) {
        this.commonServiceImplPath = commonServiceImplPath;
    }

    public String getCommonEntityName() {
        return commonEntityName;
    }

    public void setCommonEntityName(String commonEntityName) {
        this.commonEntityName = commonEntityName;
    }

    public String getCommonEntityPath() {
        return commonEntityPath;
    }

    public void setCommonEntityPath(String commonEntityPath) {
        this.commonEntityPath = commonEntityPath;
    }

    public String getCommonControllerName() {
        return commonControllerName;
    }

    public void setCommonControllerName(String commonControllerName) {
        this.commonControllerName = commonControllerName;
    }

    public String getCommonControllerPath() {
        return commonControllerPath;
    }

    public void setCommonControllerPath(String commonControllerPath) {
        this.commonControllerPath = commonControllerPath;
    }

    public String getJavaFileDir() {
        return javaFileDir;
    }

    public void setJavaFileDir(String javaFileDir) {
        this.javaFileDir = javaFileDir;
    }

    public String getMybatisXMLFileDir() {
        return mybatisXMLFileDir;
    }

    public void setMybatisXMLFileDir(String mybatisXMLFileDir) {
        this.mybatisXMLFileDir = mybatisXMLFileDir;
    }

    public String getWorkspaceDir() {
        return workspaceDir;
    }

    public void setWorkspaceDir(String workspaceDir) {
        this.workspaceDir = workspaceDir;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getMapperRemovePackage() {
        return mapperRemovePackage;
    }

    public void setMapperRemovePackage(String mapperRemovePackage) {
        this.mapperRemovePackage = mapperRemovePackage;
    }

    public String getBaseProperties() {
        return baseProperties;
    }

    public void setBaseProperties(String baseProperties) {
        this.baseProperties = baseProperties;
    }

    public boolean getHasCommonMapper() {
        return commonMapperName != null && commonMapperPath != null;
    }

    public boolean getHasCommonEntity() {
        return commonEntityName != null && commonEntityPath != null;
    }

    public boolean getHasCommonService() {
        return commonServiceName != null && commonServicePath != null;
    }

    public boolean getHasCommonServiceImpl() {
        return commonServiceImplName != null && commonServiceImplPath != null;
    }

    public boolean getHasCommonController() {
        return commonControllerName != null && commonControllerPath != null;
    }

    public boolean getIsMyBatisPlus() {
        return isMyBatisPlus;
    }

    public void setIsMyBatisPlus(boolean myBatisPlus) {
        this.isMyBatisPlus = myBatisPlus;
    }
}
